<template>
  <div class="cart-list">
    <cart-list-item 
      v-for="item in cartList" 
      :key="item.index" 
      :cartList="item">
    </cart-list-item>
  </div>
</template>

<script>
import CartListItem from './CartListItem'

export default {
  components: {
    CartListItem
  },
  computed: {
    cartList() {
      return this.$store.state.cartList
    }
  }
}
</script>

<style scoped>

</style>